#ifndef CURVE_H
#define CURVE_H

#include <mgl/mgl.h>
#include <QString>
#include <QVector>
#include <QMap>
#include <QPair>

const char curveColors[] = "brghwBGRHWcmywpCMYkP";

class Curve : public mglDraw
{
public:
    Curve();
    void setAxis(QVector<QString> x);
    int addCurve(QPair<float*, float*>, int);
    bool removeCurve(uint curveId);
    int Draw(mglGraph *gr);
private:
    uint baseID;
    float* minX;
    float* maxX;
    QString axisX;
    QString axisY;
    QMap <uint, QPair<float*, float*> > curves;
    QMap <uint, int> sizes;
};

#endif // CURVE_H
